<template>
  <fieldset>
    <legend>Parent</legend>
    <h2>父组件</h2>
    <Child :gift="gift" @re="get" />
    <Child2 v-model:f="val" v-model:x="gift" />
    <h2>{{ val }}</h2>
  </fieldset>
  <h2>多个节点</h2>
</template>
<script>
import Child from "./Child.vue";
import Child2 from "./Child2.vue";
export default {
  data() {
    return {
      gift: "vue3从入门到精通",
      val: "一条神奇的天路"
    };
  },
  components: {
    Child,
    Child2
  },
  methods: {
    get(input) {
      console.log(input)
    }
  }
};
</script>
